package com.nineclock.system.service;

import com.nineclock.common.entity.PageResult;
import com.nineclock.system.dto.SysChangeMainManagerDTO;
import com.nineclock.system.dto.SysCompanyUserDTO;
import com.nineclock.system.entity.ExcelMember;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author 黑马程序员
 * @Company http://www.ithiema.com
 * @Version 1.0
 */
public interface SysCompanyUserService  {

    List<SysCompanyUserDTO> queryCompanyUser(Long companyId, Long userId);

    SysCompanyUserDTO getCurrentAdmin();

    List<SysCompanyUserDTO> queryCompanyMemberList();

    void changeSysAdmin(SysChangeMainManagerDTO sysChangeMainManagerDTO);

    PageResult<SysCompanyUserDTO> members(Integer page, Integer pageSize, Long departmentId, String keyword);

    void importData(MultipartFile excelFile);

    /**
     * 处理解析完毕之后的员工数据, 进行数据组装及持久化操作
     * @param memberList
     */
    public void handleParsedData(List<ExcelMember> memberList);

    SysCompanyUserDTO findCompanyUserByMobile(String mobile);

    Integer queryUserCountByDepartmentId(List<Long> departmentIds);

    SysCompanyUserDTO queryAdminByCompanyId(Long companyId);

    SysCompanyUserDTO queryCompanyUserById(Long companyUserId);
}
